package com.handyshop.mall.dubbo.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "组织部门表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_org")
public class SysOrg extends BaseEntity {
    /**
     * 部门名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "部门名称")
    private String name;

    /**
     * 类型(0: 集团;1:商家;2:门店;3:部门)
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value = "类型(0: 集团;1:商家;2:门店;3:部门)")
    private Integer type;

    /**
     * 父级id
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value = "父级id")
    private Long parentId;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_TYPE = "type";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_SORT = "sort";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}